Residual entropy